<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head>
<meta  charset="UTF-8"/>
<title>Insert title here</title>
</head>
<body>
<h3>登陆信息</h3>
<span th:if="${#fields.hasErrors('${userBean.*}')}"><span th:errors="${userBean.*}"></span></span>
					<span th:text="${message}"></span>					
<div><span th:text="${message}"></span></div>
<form action="init" th:object="${userBean}" method="post">

<div>

	<span><label>用户名</label></span> <span><input
		name="userId" type="text" /></span>
</div>
<div>
	<span><label>密码</label></span> <span><input
		name="password" type="password" /></span>
</div>
<div>
	<span><input type="submit" name="login" value="登陆" /><input type="submit" name="register" value="注册" /></span>
	
</div>


</form>
</body>
</html>